Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable shortened/normal mixed record definition #239

Merged
merged 3 commits into from
Nov 21, 2022

Conversation

ytoml
Copy link
Contributor

@ytoml ytoml commented Nov 21, 2022

Fixes #238.

Enable record definition in mixed style:

x = 1
z = 100
t = {x; y = 10; z}
print! t.x  # prints 1
print! t.y  # prints 10
print! t.z  # prints 100

@mtshiba

@mtshiba mtshiba merged commit 54c0ff4 into erg-lang:main Nov 21, 2022
@mtshiba
Copy link
Member

mtshiba commented Nov 21, 2022

Thank you!
I found another problem during the review, so I made a new issue.

#240

@ytoml ytoml deleted the mixed-record branch November 22, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Record: Allow mix of shorthand/normal member definition?
2 participants